package com.sw.bbs.board.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sw.bbs.common.constant.BBSConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 *
 */
@ApiModel("板块")
@Data
public class Board {
    private Integer boardId;

    private Integer parentBoardId;

    private String title;

    private String detail;

    private String tags;

    private String coverUrl;

    private Integer level;

    private String otherInfo;

    private Integer collectNum;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = BBSConstant.DATE_FORMAT, timezone= BBSConstant.DATE_TIMEZONE)
    @DateTimeFormat(pattern = BBSConstant.DATE_FORMAT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = BBSConstant.DATE_FORMAT, timezone= BBSConstant.DATE_TIMEZONE)
    @DateTimeFormat(pattern = BBSConstant.DATE_FORMAT)
    private Date updateTime;

 }